<?php
namespace Clover\Model;

use Think\Model;

class RoleModel extends Model
{
    /**
     * 获取用户权限
     *
     * @param number $role_id
     * @return string
     * @author KevinBai
     */
    public function get_user_role($role_id = 0)
    {
        $str_res = '';

        $query = $this->table("dsk_admin_role")->where(array("id" => $role_id));
        if ($query->count() > 0) {
            $query = $this->table("dsk_admin_role")->where(array("id" => $role_id));
            $res = $query->find();

            $str_res = $res['action_list'];
        }
        return $str_res;
    }
}

?>